﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StrategyAndSort
{
    class SortContext
    {
        private ISortStrategy sortStrategy;
        public SortContext(ISortStrategy sortStrategy)
        {
            this.sortStrategy = sortStrategy;
        }
        public void Sort<T>(IList<T> array,int keyNum=0) where T: IComparable
        {
            this.sortStrategy.Sort<T>(array,keyNum);
        }
    }
}
